home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / aurora2c.zip / AUMENU.AML < prev    next >
Text File  |  1995-04-07  |  18KB  |  454 lines

  1.  
  2. // ───────────────────────────────────────────────────────────────────
  3. // The Aurora Editor v2.0
  4. // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
  5. //
  6. // Aurora Menu definitions (included by MAIN.AML)
  7. //
  8. // If you have made any changes, save this file and select 'Recompile
  9. // the Editor' from the Set menu. Exit and re-enter the editor for
  10. // your changes to take effect.
  11. // ───────────────────────────────────────────────────────────────────
  12.  
  13. // ───────────────────────────────────────────────────────────────────
  14. //  Edit Window menu bar and tool bar
  15. // ───────────────────────────────────────────────────────────────────
  16.  
  17.   function  EditMen
  18.  
  19.     // menu bar
  20.     menubar "" 1
  21.       item "&File"     "editFile"
  22.       item "&Window"   "editWindow"
  23.       item "&Block"    "editBlock"
  24.       item "&Search"   "editSearch"
  25.       item "F&old"     "editFold"
  26.       item "&Edit"     "editEdit"
  27.       item "&Clip"     "editClip"
  28.       item "&Print"    "editPrint"
  29.       item "Se&t"      "editSet"
  30.       item "M&acro"    "editMacro"
  31.       item "&Help"     "editHelp"
  32.     end
  33.  
  34.     // tool bar
  35.     menubar "" 2
  36.       item "<&&≡>"     toolbar                 // close tool bar
  37.       item "<&&?>"     quickref 'u' 'f'        // users guide
  38.       item "<&&*>"     open "*.*"              // display file manager
  39.       item "<&&/>"     copywin                 // copy window
  40.       item "<&&─>"     splitwin 'h'            // split window horz
  41.       item "<&&|>"     splitwin 'v'            // split window vert
  42.       item "<&&o>"     askopen                 // open prompt
  43.       item "<&&s>"     save                    // save file
  44.       item "<&&F>"     askfind                 // find prompt
  45.       item "<&&f>"     findlast                // do last find/replace
  46.       item "<&&r>"     formatblock2 "kr"       // reformat block
  47.       item "<&&«>"     undo                    // undo last change
  48.       item "<&&»>"     redo                    // redo last change
  49.       item "<&&>>"     foldblock2              // fold block
  50.       item "<&&<>"     destroyfold2            // unfold line
  51.     end
  52.   end
  53.  
  54.  
  55. // ───────────────────────────────────────────────────────────────────
  56. //  Edit Window pulldown menus
  57. // ───────────────────────────────────────────────────────────────────
  58.  
  59.   menu  "editFile"
  60.     item " &New                  <ctrl n>"  opennew
  61.     item " &Open..                <alt e>"  askopen
  62.     item " Open and &Insert..     <alt i>"  askinsert
  63.     item " Open &Binary.."                  askopenb
  64.     item " Open Las&t             <alt z>"  openlast
  65.     item " &Rename..              <alt n>"  askname
  66.     item " &Save                     <f3>"  save
  67.     item " Sa&ve As.."                      asksaveas
  68.     item "-"
  69.     item " &File Manager..           <f4>"  open "*.*"
  70.     item " Ne&xt               <ctrl del>"  nextfile
  71.     item " &Prev               <ctrl ins>"  prevfile
  72.     item " &List..                <alt ->"  filelist
  73.     item "─"
  74.     item " &Close                 <alt q>"  close
  75.     item " Close &All             <alt x>"  closeall
  76.     item " Sav&e and Close       <ctrl x>"  close 's'
  77.     item " Save an&d Close All"             closeall 's'
  78.     item "─"
  79.     item " Abo&ut.."                        about
  80.   end
  81.  
  82.  
  83.   menu  "editWindow"
  84.     item " &Restore"                       restore
  85.     item " &Move/Size         <ctrl f5>"   sizekey
  86.     item " P&an               <ctrl f6>"   pankey
  87.     item " M&inimize"                      minimize
  88.     item " Ma&ximize           <ctrl z>"   maximize
  89.     item " &Next               <ctrl a>"   nextwindow
  90.     item " &Prev"                          prevwindow
  91.     item " &List..              <alt w>"   winlist
  92.     item "─"
  93.     item " &Copy               <ctrl c>"   copywin
  94.     item " Split Hor&z          <alt h>"   splitwin 'h'
  95.     item " Split Ver&t          <alt v>"   splitwin 'v'
  96.     item "─"
  97.     item " Ca&scade          <shift f5>"   cascade
  98.     item " Tile &Horz        <shift f4>"   tile 'h'
  99.     item " Tile &Vert        <shift f3>"   tile 'v'
  100.     item "─"
  101.     item " Tool &Bar          <ctrl f8>"   toolbar
  102.     item " St&yle Toggle      <ctrl f7>"   togglestyle
  103.     item " Pr&ompt Style.."                askprompt
  104.   end
  105.  
  106.   menu  "editMark"
  107.     item " Mark &Line         <alt l>"   markline
  108.     item " Mark &Column       <alt b>"   markcolumn
  109.     item " Mark C&haracter    <alt a>"   markchar
  110.     item " Mark &Word         <alt 1>"   markword
  111.     item " Mark to &EOL       <alt 2>"   markeol
  112.     item " Mark &Paragraph    <alt 3>"   markpara "tb"
  113.     item "─"
  114.     item " &Unmark            <alt u>"   destroymark
  115.   end
  116.  
  117.   menu  "editBlock"
  118.     item " Mar&k..                    "    submenu "editMark"
  119.     item " &Copy                <alt c>"    copyblock2
  120.     item " Copy &Over           <alt o>"    copyblockover
  121.     item " &Move                <alt m>"    moveblock2
  122.     item " Mo&ve Over          <ctrl m>"    moveblockover
  123.     item " &Delete              <alt d>"    deleteblock2
  124.     item " &Indent           <shift f8>"    shiftblock  1
  125.     item " Uninden&t         <shift f7>"    shiftblock -1
  126.     item "─"
  127.     item " &Fill            <ctrl k><f>"    fillblock2
  128.     item " &Reformat            <alt r>"    formatblock2 "kr"
  129.     item " R&eformat Right      <alt y>"    formatblock2 "rj"
  130.     item " S&ave..          <ctrl k><s>"    saveblock2
  131.     item " &Sort            <ctrl k><o>"    sortblock2
  132.     item " Lo&wercase"                      caseblock 'l'
  133.     item " U&ppercase       <ctrl k><u>"    caseblock
  134.     item "─"
  135.     item " &Left Justify"                   justblock2 'l'
  136.     item " Ri&ght Justify"                  justblock2 'r'
  137.     item " Ce&nter          <ctrl k><c>"    justblock2 'c'
  138.   end
  139.  
  140.   menu  "editSearch"
  141.     item " &Find..         <f5> or <ctrl f>"   askfind
  142.     item " Re&place..              <ctrl g>"   askrepl
  143.     item " &Repeat Last Find/Repl  <ctrl l>"   findlast
  144.     item " &Scan Files..           <ctrl s>"   askscan
  145.     item " &Incremental Search     <ctrl i>"   isearch
  146.     item " Find &Occurrences..     <ctrl h>"   askfindo
  147.     item "─"
  148.     item " &Quick Bookmark         <ctrl 2>"   quickbook
  149.     item " Pre&v Bookmark          <ctrl 6>"   cyclebook
  150.     item " Place &Bookmark.."                  placebook
  151.     item " &Go to Bookmark.."                  askbook
  152.     item "─"
  153.     item " Go to &Line..           <ctrl j>"   askrow
  154.     item " Go to Bloc&k Start      <ctrl b>"   gotomark 't'
  155.     item " Go to Block En&d"                   gotomark 'b'
  156.     item " Go to Ne&xt Fold         <alt 7>"   search2 "f/f"
  157.     item "─"
  158.     item " Find &Matching Char     <alt f3>"   gotomatch2
  159.     item " Go to Compiler &Error   <alt f7>"   gotoerror
  160.   end
  161.  
  162.   menu  "editFold"
  163.     item " &Fold Next Line          <alt 8>"    foldline
  164.     item " &Unfold Next Line        <alt 9>"    foldline 'u'
  165.     item "─"
  166.     item " C&reate Fold"                        createfold
  167.     item " &Destroy Fold            <alt g>"    destroyfold2
  168.     item " &Open Fold               <alt \\>"   openfold
  169.     item " &Close Fold              <alt \\>"   closefold
  170.     item "─"
  171.     item " Fold Bloc&k              <alt f>"    foldblock2
  172.     item " Fold Block Fl&at"                    foldflat
  173.     item " Des&troy Block Folds"                foldblock 'ds'
  174.     item " O&pen Block Folds"                   foldblock 'os'
  175.     item " C&lose Block Folds"                  foldblock 'cs'
  176.     item "─"
  177.     item " Destro&y All Folds       <alt 0>"    foldall 'ds'
  178.     item " Ope&n All Folds          <alt [>"    foldall 'os'
  179.     item " Clo&se All Folds         <alt ]>"    foldall 'cs'
  180.     item "─"
  181.     item " &Export without Folds.."             asksaveas 'x'
  182.     item " E&xport Block without Folds.."       saveblock2 'x'
  183.   end
  184.  
  185.   menu  "editEdit"
  186.     item " &Undo                  <ctrl u>"   undo
  187.     item " &Redo                  <ctrl y>"   redo
  188.     item "─"
  189.     item " &Insert Line       <ctrl enter>"   insline2
  190.     item " &Delete Line       <ctrl baksp>"   delline
  191.     item " &Split Line             <alt s>"   splitline2
  192.     item " &Join Line              <alt j>"   joinline
  193.     item "─"
  194.     item " &Erase to End              <f6>"   delchar (getlinelen)
  195.     item " Delete Right &Word     <ctrl t>"   delword
  196.     item " Du&plicate Line         <alt 4>"   insline (gettext)
  197.     item " Sw&ap Lines             <alt 5>"   swapline
  198.     item " Ce&nter Line            <alt 6>"   centerline
  199.     item "─"
  200.     item " &Comment Line          <alt f1>"   commentline
  201.     item " Enter &Literal..       <ctrl [>"   literal
  202.     item " ASCII C&hart..          <alt =>"   asciilist
  203.     item " Date/&Time Stamp    <ctrl k><t>"   timestamp
  204.     item " E&xpand Tabs        <ctrl k><x>"   tabfile
  205.     item " Hi&ghlight Word        <ctrl \\>"  hiliteword
  206.   end
  207.  
  208.   menu  "editClip"
  209.     item " Cu&t                     <grey->"  cut
  210.     item " Cut &Append         <ctrl grey->"  cut 'a'
  211.     item " &Copy                    <grey+>"  copy
  212.     item " Cop&y Append        <ctrl grey+>"  copy 'a'
  213.     item "─"
  214.     item " &Paste                   <grey*>"  paste
  215.     item " Paste &Over         <ctrl grey*>"  paste 'o'
  216.     item "─"
  217.     item " C&lear              <ctrl grey/>"  clear
  218.     item " Current Clip&board..|*"            askclip
  219.   end
  220.  
  221.   menu  "editPrint"
  222.     item " &Print             <ctrl p>"       print
  223.     item " Print &Block        <alt p>"       print 'b'
  224.     item " Print &Formfeed"                   printstr (char 12)
  225.     item "-"
  226.     item " &Header/Footer..|*"                askprthdr
  227.     item " Printer &Settings..|*"             askprint
  228.   end
  229.  
  230.   menu  "Fonts"
  231.     item " 80 cols x 1&4 rows|*"           videomode 80 14
  232.     item " 80 cols x 2&1 rows|*"           videomode 80 21
  233.     item " 80 cols x 2&5 rows|*"           videomode 80 25
  234.     item " 80 cols x 2&8 rows|*"           videomode 80 28
  235.     item " 80 cols x 4&3 rows|*"           videomode 80 43
  236.     item " 80 cols x 5&0 rows|*"           videomode 80 50
  237.     item "─"
  238.     item " 40 cols x &25 rows|*"           videomode 40 25
  239.   end
  240.  
  241.   // Note: do not change the first 12 lines of this menu
  242.   // (except for key definitions)
  243.   menu  "editSet"
  244.     item " &AutoIndent"                        setting 'A' TOGGLE
  245.     item " &Backup"                            setting 'B' TOGGLE
  246.     item " Line &Draw              <ctrl d>"   setting 'D' TOGGLE
  247.     item " Line St&yle..                  "   submenu "LineStyle"
  248.     item " &Match Character"                   setting 'M' TOGGLE
  249.     item " &Smart Tabs"                        setting 'S' TOGGLE
  250.     item " Synta&x Highlighting"               setting 'X' TOGGLE
  251.     item " &Translate              <alt f4>"   setting 'T' TOGGLE
  252.     item " &Undo"                              setting 'U' TOGGLE
  253.     item " &Variable Tabs"                     setting 'V' TOGGLE
  254.     item " &Word Wrap"                         setting 'W' TOGGLE
  255.     item " &Live Word Wrap         <ctrl w>"   setting 'L' TOGGLE
  256.     item "─"
  257.     item " Word &Processing..             "   submenu "WordP"
  258.     item " Bi&nary Line Length..|*"            askbinary
  259.     item " Line D&elimiter..|*"                askdelim
  260.     item "─"
  261.     item " V&ideo Mode..                  "   submenu "Fonts"
  262.     item " Save &Current Settings"             saveconfig
  263.     item " &Recompile the Editor   <alt f2>"   recompile
  264.   end
  265.  
  266.   menu  "WordP"
  267.     item " &Tab Width..|*"            asktabw
  268.     item " &Variable Tab Stops..|*"   asktabv
  269.     item "─"
  270.     item " &Left Margin..|*"          asklmarg
  271.     item " &Right Margin..|*"         askrmarg
  272.   end
  273.  
  274.   // Note: do not change this menu (except for key definitions)
  275.   menu  "LineStyle"
  276.     item " &Single"               setdraw 0
  277.     item " Double &Horizontal"    setdraw 1
  278.     item " Double &Vertical"      setdraw 2
  279.     item " &Double"               setdraw 3
  280.     item " &Eraser"               setdraw 4
  281.   end
  282.  
  283.   menu  "editMacro"
  284.     item " &Record Toggle        <ctrl r>"    record
  285.     item " &Play                 <ctrl e>"    play
  286.     item " &Erase"                            erasekey
  287.     item " Era&se All"                        erasekey 'a'
  288.     item " Ope&n.."                           askopenkey
  289.     item " Sa&ve.."                           asksavekey
  290.     item " &Assign to Key.."                  assignkey
  291.     item "─"
  292.     item " &Configuration.."                  opencfg "config"
  293.     item " &Keys.."                           opencfg "kbd"
  294.     item " Sample Utility &Macros.."
  295.       runmacro (getbootpath + "MACRO\\" + "utility.x")
  296.     item "─"
  297.     item " Macro E&xpression..   <ctrl v>"    askeval
  298.     item " R&un Macro.."                      askrmacro
  299.     item " &Include Macro.."                  askimacro
  300.     item " Compi&le Macro.."                  askcmacro
  301.     item "─"
  302.     item " &OS Command..         <alt f9>|*"  askrun
  303.     item " OS Cap&ture..         <alt f8>"    askruncap
  304.     item " OS S&hell                 <f9>|*"  shell
  305.   end
  306.  
  307.   menu  "editHelp"
  308.     item " &User's Guide Topics"
  309.       runmacro (getbootpath + "MACRO\\" + "helpuser.x")
  310.     item " User's &Guide"                            quickref 'u'
  311.     item " User &Tips"                               quickref 't'
  312.     item "-"
  313.     item " &Language Reference Topics"
  314.       runmacro (getbootpath + "MACRO\\" + "helplang.x")
  315.     item " Language &Reference"                      quickref 'l'
  316.     item "-"
  317.     item " &Function Reference          <shift f2>"  quickref 'f'
  318.     item " Function &Quick Reference    <shift f1>"  quickref 'q'
  319.     item "-"
  320.     item " &Ordering Information"                    quickref 'o'
  321.   end
  322.  
  323. // ───────────────────────────────────────────────────────────────────
  324. //  File Manager window menu bar
  325. // ───────────────────────────────────────────────────────────────────
  326.  
  327.   function  FmgrMen
  328.     menubar "" 1
  329.       item "&File"    "fmgrFile"
  330.       item "&Window"  "fmgrWindow"
  331.       item "&Mark"    "fmgrMark"
  332.       item "&Command" "fmgrCommand"
  333.       item "&Sort"    "fmgrSort"
  334.       item "&Print"   "fmgrPrint"
  335.       item "Se&t"     "fmgrSet"
  336.       item "M&acro"   "editMacro"
  337.       item "&Help"    "editHelp"
  338.     end
  339.   end
  340.  
  341.  
  342. // ───────────────────────────────────────────────────────────────────
  343. //  File Manager window pulldown menus
  344. // ───────────────────────────────────────────────────────────────────
  345.  
  346.   menu  "fmgrFile"
  347.     item " &New                 <ctrl n>"  opennew
  348.     item " &Open..               <alt e>"  askopen
  349.     item " Open &Binary.."                 askopenb
  350.     item " Open Las&t            <alt z>"  openlast
  351.     item " &Parent          <ctrl baksp>"  fup
  352.     item " R&efresh"                       reopen
  353.     item "─"
  354.     item " &Close                <alt q>"  close
  355.     item " Close &All            <alt x>"  closeall
  356.     item "─"
  357.     item " Abo&ut.."                       about
  358.   end
  359.  
  360.   menu  "fmgrWindow"
  361.     item " &Restore"                      restore
  362.     item " &Move/Size        <ctrl f5>"   sizekey
  363.     item " P&an              <ctrl f6>"   pankey
  364.     item " M&inimize"                     minimize
  365.     item " Ma&ximize          <ctrl z>"   maximize
  366.     item " &Next              <ctrl a>"   nextwindow
  367.     item " &Prev"                         prevwindow
  368.     item " &List..             <alt w>"   winlist
  369.     item "─"
  370.     item " Ca&scade         <shift f5>"   cascade
  371.     item " Tile &Horz       <shift f4>"   tile 'h'
  372.     item " Tile &Vert       <shift f3>"   tile 'v'
  373.     item "─"
  374.     item " Pr&ompt Style.."               askprompt
  375.   end
  376.  
  377.   menu  "fmgrMark"
  378.     item " Mark &Toggle     <space>"     fmark
  379.     item "─"
  380.     item " &Mark All        <alt m>"     fmark "ma"
  381.     item " &Unmark All      <alt u>"     fmark "ua"
  382.   end
  383.  
  384.   menu  "fmgrCommand"
  385.     item " &Open                  <enter>"    fopen
  386.     item " Open &Binary         <shift b>"    fopen 'b'
  387.     item " Open &Key Macro      <shift k>"    openkey2 (getffile)
  388.     item "─"
  389.     item " &Move..              <shift m>"    fmove
  390.     item " &Copy..              <shift c>"    fcopy
  391.     item " &Delete     <del> or <shift d>"    fdelete
  392.     item " Re&name..            <shift n>"    frename
  393.     item "─"
  394.     item " &Run                 <shift r>"    frun 'c'
  395.     item " &Print               <shift p>"    fprint
  396.     item "─"
  397.     item " &Attributes..        <shift a>"    fattr
  398.     item " &Touch               <shift t>"    ftouch
  399.     item "─"
  400.     item " Cr&eate Directory.."               fmkdir
  401.     item " &Scan Files..         <ctrl s>"    askscan
  402.   end
  403.  
  404.   menu  "fmgrSort"
  405.     item " &Name           <alt n>"    fsort 'n'
  406.     item " &Extension"                 fsort 'e'
  407.     item " &Size           <alt s>"    fsort 's'
  408.     item " &Date-Time      <alt d>"    fsort 'd'
  409.     item " &OS Default     <alt o>"    fsort 'o'
  410.   end
  411.  
  412.   menu  "fmgrSet"
  413.     item " Bi&nary Line Length..|*"                askbinary
  414.     item " L&ine Delimiter..|*"                    askdelim
  415.     item "─"
  416.     item " &Video Mode..                   "      submenu "Fonts"
  417.     item " Video To&ggle           <ctrl f1>|*"    togglemode
  418.     item "-"
  419.     item " Save &Current Settings"                 saveconfig
  420.     item " &Recompile the Editor    <alt f2>"      recompile
  421.   end
  422.  
  423.   menu  "fmgrPrint"
  424.     item " &Print             <ctrl p>"   print
  425.     item " Print &Formfeed"               printstr (char 12)
  426.     item " Print &Settings..|*"           askprint
  427.   end
  428.  
  429.  
  430. // ───────────────────────────────────────────────────────────────────
  431. //  Miscellaneous menus
  432. // ───────────────────────────────────────────────────────────────────
  433.  
  434.   // yes/no/cancel popup menu
  435.   menu  "ync"
  436.     item " &Yes"
  437.     item " &No"
  438.     item " &Cancel"
  439.   end
  440.  
  441.   // ok/cancel popup menu
  442.   menu  "ok"
  443.     item " O&k"
  444.     item " &Cancel"
  445.   end
  446.  
  447.   // replace/append/cancel popup menu
  448.   menu  "rac"
  449.     item " &Replace"
  450.     item " &Append"
  451.     item " &Cancel"
  452.   end
  453.  
  454.